<?php slot('fb_like') ?>
  <meta property="og:title" content="<?php echo htmlspecialchars_decode($offer->getName()) ?>" />
  <meta property="og:type" content="website" />
  <meta property="og:image" content="<?php echo sfContext::getInstance()->getRequest()->getUriPrefix(); ?>/uploads/offers/small/<?php echo $offer->getImage()->getImage() ?>" />
  <meta property="og:url" content="<?php echo url_for($offer->getRouteName().'?id='.$offer->getId(), true) ?>" />
  <meta property="og:site-name" content="Reduceri & Cadouri" />
  <meta property="fb:admins" content="533936499" />
  <?php if($fb_description): ?>
    <meta property="og:description" content="<?php echo $fb_description ?>" />
  <?php endif; ?>
<?php end_slot() ?>

<?php slot('site_subtitle') ?>
  <h2>
    Cele mai mari <strong>reduceri din <?php echo $city->getName() ?></strong> adunate intr-un singur loc!
    <br />
    Alege si fa-ti un <strong>cadou</strong> tie sau cuiva drag!
    <div class="tip"></div>
  </h2>
<?php end_slot(); ?>

<h1 class="offer-title">
  <a href="<?php echo url_for('out/index?oid='.$offer->getId()) ?>" target="_blank"><?php echo htmlspecialchars_decode($offer->getName()) ?></a>
  <div class="offer-image">
    <img src="/uploads/offers/small/<?php echo $offer->getImage()->getImage() ?>" />
  </div>
  <div class="offer-discount-percent p<?php echo round($offer->getDiscountPercent()) ?>">
    <strong><?php echo round($offer->getDiscountPercent()) ?>% reducere</strong>
  </div>
</h1>

<div class="offer-time">
  <?php if($expiration_time = $offer->getExpirationTime()): ?>
    Expira in <?php echo $expiration_time['hours'] ?> ore si <?php echo $expiration_time['minutes'] ?> minute
  <?php else: ?>
    Reducere expirata
  <?php endif; ?>
  - <a href="<?php echo url_for('out/index?oid='.$offer->getId()) ?>" target="_blank">Mergi la pagina ofertei</a>
</div>
<div style="float: left;">
  <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=132672426807598&amp;xfbml=1"></script><fb:like href="<?php echo url_for($offer->getRouteName().'?id='.$offer->getId(), true) ?>" send="false" layout="button_count" width="75" show_faces="false" font=""></fb:like>
</div>
  
<div class="offer-description">
  <?php echo nl2br(htmlspecialchars_decode($offer->getDescription())) ?>
</div>
<?php if($offer->getSiteId()): ?>
  <div class="offer-provider">
    <?php if($offer->getDiscountPercent() >= 80): ?>
      Cadou oferit de
    <?php else: ?>
      Reducere oferita de
    <?php endif; ?>
    <?php if($offer->getSite()->getLogo()): ?>
      <img src="/uploads/sites/<?php echo $offer->getSite()->getLogo() ?>" alt="<?php echo $offer->getSite() ?>" />
    <?php endif; ?>
    <strong><a href="<?php echo url_for('out/index?sid='.$offer->getSiteId()) ?>" target="_blank"><?php echo $offer->getSite() ?></a></strong>
    in <?php echo $offer->getCitiesString() ?>
  </div>
<?php endif; ?>

<div class="offer-comments">
  <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=116487325090582&amp;xfbml=1"></script><fb:comments numposts="10" width="520" publish_feed="true"></fb:comments>
</div>
